import java.util.Scanner;

/**
   Reads a string, checks to see if it is a palindrome, and prints
      "Yes" or "No", accordingly. 
   Input: the value of s, a string
   Output: "Yes" or "No"
*/
public class PalFind
{
    public static String reverse(String str){
        return new StringBuffer(str).reverse().toString();
    }
    public static void main(String[] args)
    {
        // Read string and convert to lowercase
        Scanner in = new Scanner(System.in);
        String ins = in.nextLine();

        ins = ins.toLowerCase();
        String reverse = reverse(ins).toLowerCase();
        boolean p = true;
        for(int i = 0;i < ins.length();i++){
            if(ins.charAt(i) != reverse.charAt(i)){
                p = false;
                break;
            }
        }
        System.out.println(p?"Yes":"No");
    }
}